﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    EnableEventValidation="false" CodeBehind="ComparisonByHospital.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Comparison.ComparisonByHospital"
    Title="按医院对比" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">

        function displayDIV() {
            if (document.getElementById("tabcontent2").style.display == "none") {
                document.getElementById("tabcontent2").style.display = "block"
                document.getElementById("btnDisplay").value = "隐藏图表"
            }
            else {
                document.getElementById("tabcontent2").style.display = "none"
                document.getElementById("btnDisplay").value = "显示图表"
            }

        }
        function dis(id) {
            document.getElementById("chart1").style.display = "none";
            document.getElementById("chart2").style.display = "none";
            document.getElementById(id).style.display = "block"
        }        
    </script>

    <input id="btnDisplay" type="button" value="隐藏图表" onclick="displayDIV()" class="btn" />
    <div id="tabcontent2" class="importlist">
        <div id="divTable" runat="server" style="text-align:center;">
            <a href="javascript:dis('chart1')">金额图表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <a href="javascript:dis('chart2')"> 配送率图表</a>
        </div>
        <asp:Label ID="lblnull" runat="server" Text="无对比数据" Visible="false"></asp:Label>
        <div id="chart1">
            <asp:Chart ID="ChartMoney" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" Width="1100px" Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Right" Alignment="Near">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="ChartMoneyArea" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="80" X="2"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <div id="chart2" style="display: none">
            <asp:Chart ID="ChartInStorage" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="1100"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Right" Alignment="Near">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="ChartCountArea" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="80" X="2"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
    </div>
    <div id="divContext">
        <asp:GridView ID="gvwHosComparison" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
            OnRowDataBound="gvwProcureCatalog_RowDataBound">
            <Columns>
                <%--<asp:TemplateField HeaderText="采购类型">
                    <ItemTemplate>
                        <%#getSortSource(Eval("SortSource"))%>
                    </ItemTemplate>
                    <HeaderStyle Width="60px" />
                </asp:TemplateField>--%>
                <asp:BoundField DataField="HospitalName" HeaderText="医院" ReadOnly="true" />
                <asp:BoundField DataField="addDataColumn" HeaderText="采购类型" />
                <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总金额" ReadOnly="True" />
                <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送总金额" />
                <asp:BoundField DataField="addDistributeRate" HeaderText="配送率" />
                <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库总金额" ReadOnly="True" />
                <asp:BoundField DataField="addDataColumnRate" HeaderText="入库率" ReadOnly="True" />
            </Columns>
        </asp:GridView>
    </div>
    <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
    <div id="divshow" class="listip">
        <ul>
            <li>说明:1.<span>此数据是静态数据，每24小时统计一次。</span> </li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.<span>配送率计算方式为：配送金额/采购金额；入库率计算方式为：入库金额/采购金额。</span>
            </li>
        </ul>
    </div>
</asp:Content>
